package yxy.game.pm2.module.union.rank;

import yxy.game.pm2.bean.module.rank.PlayerRankModule;

public class RankPowerUnion extends UnionRankModule {
	private int clusterId; //专服id

	public int getClusterId() {
		return clusterId;
	}

	public void setClusterId(int clusterId) {
		this.clusterId = clusterId;
	}

	public RankPowerUnion(int clusterId) {
		setClusterId(clusterId);
		initInfo();
	}

	@Override
	protected String rankKey() {
		return String.format("UNIONRANK:%s:%s", getClusterId(), rankName());
	}

	@Override
	public String rankName() {
		return PlayerRankModule.getAllRankNames().get(8);
	}

	@Override
	protected long valuePlastic(long value) {
		return value * 10;
	}

	@Override
	protected long valueRestore(long score) {
		return score / 10;
	}
}
